<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 6.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"ghostlitao.gitee.io","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="把生命浪费在美好的实物上">
<meta property="og:type" content="website">
<meta property="og:title" content="去找Todd">
<meta property="og:url" content="https://ghostlitao.gitee.io/page/3/index.html">
<meta property="og:site_name" content="去找Todd">
<meta property="og:description" content="把生命浪费在美好的实物上">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Todd">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://ghostlitao.gitee.io/page/3/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : true,
    isPost : false,
    lang   : 'zh-CN'
  };
</script>

  <title>去找Todd</title>
  


  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?d988341c748563d16048e8e7dab0f384";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">去找Todd</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">Todd的博客</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content index posts-expand">
            
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2019/01/09/move-uploaded-file-Unable-to-move-to-119/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2019/01/09/move-uploaded-file-Unable-to-move-to-119/" class="post-title-link" itemprop="url">move_uploaded_file(): Unable to move ' ' to ' ' (119)</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-01-09 12:00:56" itemprop="dateCreated datePublished" datetime="2019-01-09T12:00:56+08:00">2019-01-09</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>简单来说,这个问题,第一个反应肯定是权限不够.<br>但是除了这个报错,没有报权限不够的其他错误.很是奇怪.<br>去检查了权限,又重设了,也没用.<br>耽搁了一天,又去检查,突然发现同一个文件,服务器上可以直接上传,这台电脑就是不行.<br>考虑了很久,怀疑到了文件编码上,改了下文件名,上传,成功了.</p>
<p>所以,这个函数在目标文件是中文的情况下,可能因为编码问题导致无法移动.解决办法也倒是很简单,save 的时候,不要直接使用原文件名,用 uuid 之类的代替,需要保存的,用数据库管理起来对应关系.</p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2019/01/08/Could-not-freeze-file-name-Cannot-read-property-hash-of-undefined/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2019/01/08/Could-not-freeze-file-name-Cannot-read-property-hash-of-undefined/" class="post-title-link" itemprop="url">Could not freeze .file name..: Cannot read property 'hash' of undefined</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-01-08 20:21:42" itemprop="dateCreated datePublished" datetime="2019-01-08T20:21:42+08:00">2019-01-08</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>之前用了nvm 和本地的 node 有点冲突,后来卸载了自带的 node,全部用 nvm,其他也正常,但是突然间 ant d pro 出现了一堆神奇的控制台报错,每一句都这样,只是文件名会换换:<br>Could not freeze …: Cannot read property ‘hash’ of undefined<br>说实话没搞懂,搜了一圈没明白,最后还是这个链接搞定的:</p>
<p><a target="_blank" rel="noopener" href="https://github.com/mzgoddard/hard-source-webpack-plugin/issues/416">https://github.com/mzgoddard/hard-source-webpack-plugin/issues/416</a></p>
<p>最靠谱的就是删掉目录下:<br>node_modules&#x2F;.cache&#x2F;hard-source 这个目录<br>删了之后就好了.还是什么缓存导致的错误.</p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2018/11/21/Could-not-run-adb-reverse-Command-failed-adb-s-reverse-tcp-8081-tcp-8081/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2018/11/21/Could-not-run-adb-reverse-Command-failed-adb-s-reverse-tcp-8081-tcp-8081/" class="post-title-link" itemprop="url">Could not run adb reverse: Command failed: ...adb -s  reverse tcp:8081</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2018-11-21 15:06:00" itemprop="dateCreated datePublished" datetime="2018-11-21T15:06:00+08:00">2018-11-21</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>Could not run adb reverse: Command failed: …adb -s reverse tcp:8081 tcp:8081</p>
<p>参考<br><a target="_blank" rel="noopener" href="https://stackoverflow.com/questions/45229579/could-not-run-adb-reverse-react-native">https://stackoverflow.com/questions/45229579/could-not-run-adb-reverse-react-native</a></p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2018/11/05/PHP-%E6%96%B0%E5%BB%BA%E4%BA%86%E4%B8%80%E4%B8%AA%E7%BD%91%E7%AB%99-%E8%BF%90%E8%A1%8C%E5%9C%A8-IIS-%E9%87%8C-%E5%9C%A8-IE-%E9%87%8C%E9%9D%A2%E6%89%93%E5%BE%97%E5%BC%80-Chrome-%E9%87%8C%E9%9D%A2%E6%89%93%E4%B8%8D%E5%BC%80/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2018/11/05/PHP-%E6%96%B0%E5%BB%BA%E4%BA%86%E4%B8%80%E4%B8%AA%E7%BD%91%E7%AB%99-%E8%BF%90%E8%A1%8C%E5%9C%A8-IIS-%E9%87%8C-%E5%9C%A8-IE-%E9%87%8C%E9%9D%A2%E6%89%93%E5%BE%97%E5%BC%80-Chrome-%E9%87%8C%E9%9D%A2%E6%89%93%E4%B8%8D%E5%BC%80/" class="post-title-link" itemprop="url">PHP 新建了一个网站,运行在 IIS 里, 在 IE 里面打得开,Chrome 里面打不开</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2018-11-05 12:07:00" itemprop="dateCreated datePublished" datetime="2018-11-05T12:07:00+08:00">2018-11-05</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>碰到了一个诡异的事儿,IE 里面打开完全正常,Chrome打开显示链接中断??<br>真的见了鬼了,看起来从 Chrome那一段直接就没发出去请求.<br>搜了半天,终于找到了个原因:</p>
<p>Chrome 浏览器某些端口不能访问 建立IIS的时候尽量避免.</p>
<p>原来我用了一个 87端口,这个端口是finger 的常用端口.</p>
<p>结过就直接打不开,<br>列举下还有哪些端口,Chrome 会直接不让用:</p>
<p>Chrome，Firfox以下端口的web站点无法访问，所以在配置自己站点时需避开以下端口：<br>&#x2F;&#x2F; tcpmux 7, &#x2F;&#x2F; echo 9, &#x2F;&#x2F; discard 11, &#x2F;&#x2F; systat 13, &#x2F;&#x2F; daytime 15, &#x2F;&#x2F; netstat 17, &#x2F;&#x2F; qotd 19, &#x2F;&#x2F; chargen 20, &#x2F;&#x2F; ftp data 21, &#x2F;&#x2F; ftp access 22, &#x2F;&#x2F; ssh 23, &#x2F;&#x2F; telnet 25, &#x2F;&#x2F; smtp 37, &#x2F;&#x2F; time 42, &#x2F;&#x2F; name 43, &#x2F;&#x2F; nicname 53, &#x2F;&#x2F; domain 77, &#x2F;&#x2F; priv-rjs 79, &#x2F;&#x2F; finger 87, &#x2F;&#x2F; ttylink 95, &#x2F;&#x2F; supdup 101, &#x2F;&#x2F; hostriame 102, &#x2F;&#x2F; iso-tsap 103, &#x2F;&#x2F; gppitnp 104, &#x2F;&#x2F; acr-nema 109, &#x2F;&#x2F; pop2 110, &#x2F;&#x2F; pop3 111, &#x2F;&#x2F; sunrpc 113, &#x2F;&#x2F; auth 115, &#x2F;&#x2F; sftp 117, &#x2F;&#x2F; uucp-path 119, &#x2F;&#x2F; nntp 123, &#x2F;&#x2F; NTP 135, &#x2F;&#x2F; loc-srv &#x2F;epmap 139, &#x2F;&#x2F; netbios 143, &#x2F;&#x2F; imap2 179, &#x2F;&#x2F; BGP 389, &#x2F;&#x2F; ldap 465, &#x2F;&#x2F; smtp+ssl 512, &#x2F;&#x2F; print &#x2F; exec 513, &#x2F;&#x2F; login 514, &#x2F;&#x2F; shell 515, &#x2F;&#x2F; printer 526, &#x2F;&#x2F; tempo 530, &#x2F;&#x2F; courier 531, &#x2F;&#x2F; chat 532, &#x2F;&#x2F; netnews 540, &#x2F;&#x2F; uucp 556, &#x2F;&#x2F; remotefs 563, &#x2F;&#x2F; nntp+ssl 587, &#x2F;&#x2F; stmp? 601, &#x2F;&#x2F; ?? 636, &#x2F;&#x2F; ldap+ssl 993, &#x2F;&#x2F; ldap+ssl 995, &#x2F;&#x2F; pop3+ssl 2049, &#x2F;&#x2F; nfs 4045, &#x2F;&#x2F; lockd 6000, &#x2F;&#x2F; X11</p>
<p>如果你一定要用,只能在 Chrome 的启动参数增加 –explicitly-allowed-ports&#x3D;端口号<br>例如: Application Data\Google\Chrome\Application\chrome.exe –explicitly-allowed-ports&#x3D;87</p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2018/09/06/ueditor-thinkcmf-mailto-%E7%9A%84%E4%B8%80%E7%B3%BB%E5%88%97%E9%9C%80%E8%A6%81%E8%A7%A3%E5%86%B3%E7%9A%84%E6%AF%9B%E7%97%85/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2018/09/06/ueditor-thinkcmf-mailto-%E7%9A%84%E4%B8%80%E7%B3%BB%E5%88%97%E9%9C%80%E8%A6%81%E8%A7%A3%E5%86%B3%E7%9A%84%E6%AF%9B%E7%97%85/" class="post-title-link" itemprop="url">ueditor thinkcmf mailto 的一系列需要解决的毛病</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2018-09-06 12:50:00" itemprop="dateCreated datePublished" datetime="2018-09-06T12:50:00+08:00">2018-09-06</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>给客户做的网站,用 thinkcmf 做的 cms 系统,里面文章里面需要触发 mailto 的功能,狗日的最后渲染出来的地址乱七八糟,加了两层 http .<br>问题有两个:</p>
<ol>
<li>ueditor 自身处理的时候,会自动增加 http 前缀.不知道图啥.<br>  代码位置:<br>  <code>public/static/js/ueditor/dialogs/link/link.html</code><br>  大约90行左右,增加 mailto 的条件.  <figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">if</span> (!<span class="title function_">hrefStartWith</span>(href, [<span class="string">&quot;http&quot;</span>, <span class="string">&quot;/&quot;</span>, <span class="string">&quot;ftp://&quot;</span>, <span class="string">&#x27;#&#x27;</span>, <span class="string">&#x27;mailto&#x27;</span>])) &#123;</span><br><span class="line">href = <span class="string">&quot;http://&quot;</span> + href;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
  不过值得提一下,可能是版本问题,ueditor 的 config 文件中,allowLinkProtocols 里面其实有mailto的,但是并没有什么卵用??</li>
</ol>
<p>  这个问题处理过了,发现还有一层.</p>
<ol start="2">
<li>是 thinkcmf 的问题.<br>渲染 html 内容的时候,会调用:<br>simplewind&#x2F;cmf&#x2F;common.php的 1601行左右 cmf_replace_content_file_url()方法:</li>
</ol>
<p>1650行 我改成了:</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">if</span> (<span class="title function_ invoke__">preg_match</span>(<span class="string">&quot;/^mailto/&quot;</span>, <span class="variable">$href</span>)) &#123;</span><br><span class="line">  <span class="variable">$link</span>-&gt;<span class="title function_ invoke__">attr</span>(<span class="string">&quot;href&quot;</span>, <span class="variable">$href</span>);</span><br><span class="line">&#125;<span class="keyword">else</span>&#123;</span><br><span class="line">  <span class="keyword">if</span> (!(<span class="title function_ invoke__">preg_match</span>(<span class="string">&quot;/^\//&quot;</span>, <span class="variable">$href</span>) || <span class="title function_ invoke__">preg_match</span>(<span class="string">&quot;/^http/&quot;</span>, <span class="variable">$href</span>))) &#123;</span><br><span class="line">    <span class="variable">$link</span>-&gt;<span class="title function_ invoke__">attr</span>(<span class="string">&quot;href&quot;</span>, <span class="title function_ invoke__">cmf_get_file_download_url</span>(<span class="variable">$href</span>));</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>不再处理这个 href.</p>
<p>然后清理下 thinkcmf 的缓存,前端强制刷新下.<br>问题解决.</p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2018/08/16/svn-%E8%BF%81%E7%A7%BB-git-%E5%AE%8C%E6%95%B4%E8%AE%B0%E5%BD%95/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2018/08/16/svn-%E8%BF%81%E7%A7%BB-git-%E5%AE%8C%E6%95%B4%E8%AE%B0%E5%BD%95/" class="post-title-link" itemprop="url">svn 迁移 git 完整记录</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2018-08-16 22:26:00" itemprop="dateCreated datePublished" datetime="2018-08-16T22:26:00+08:00">2018-08-16</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>先确定有没有安装工具<br><code>yum install git-svn</code></p>
<p>下载下来代码库<code> git svn clone svn://1.1.1.1/name -s</code><br>好了之后,记得把 tags 留下来<br><code>cp -Rf .git/refs/remotes/tags/* .git/refs/tags/</code><br><code>rm -Rf .git/refs/remotes/tags</code></p>
<p><code>cp -Rf .git/refs/remotes/* .git/refs/heads/</code><br><code>rm -Rf .git/refs/remotes</code><br>没有就算了</p>
<p>添加远程库<br><code>git remote add origin http://me/gitbucket/git/todd/name.git</code><br><code>git push -u origin master</code><br><code>git push origin –all</code></p>
<p>如果你有 tags 的话还要:<br><code>git push –tags</code></p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2018/08/15/python-%E5%8D%87%E7%BA%A7%E5%90%8E-yum-%E6%8A%A5%E9%94%99/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2018/08/15/python-%E5%8D%87%E7%BA%A7%E5%90%8E-yum-%E6%8A%A5%E9%94%99/" class="post-title-link" itemprop="url">python 升级后 yum 报错</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2018-08-15 17:44:00" itemprop="dateCreated datePublished" datetime="2018-08-15T17:44:00+08:00">2018-08-15</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">There was a problem importing one of the Python modules</span><br><span class="line">required to run yum. The error leading to this problem was:</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">/root/anaconda3/lib/liblzma.so.5: version `XZ_5.1.2alpha&#x27; not found (required by /lib64/librpmio.so.3)</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">Please install a package which provides this module, or</span><br><span class="line">verify that the module is installed correctly.</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">It&#x27;s possible that the above module doesn&#x27;t match the</span><br><span class="line">current version of Python, which is:</span><br><span class="line">2.7.5 (default, Aug 4 2017, 00:39:18)</span><br><span class="line">[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">If you cannot solve this problem yourself, please go to</span><br><span class="line">the yum faq at:</span><br><span class="line">http://yum.baseurl.org/wiki/Faq</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<p>解决办法:</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">vim .bash_profile</span><br><span class="line">export LD_LIBRARY_PATH=/lib64/:$LD_LIBRARY_PATH</span><br><span class="line">source .bash_profile</span><br></pre></td></tr></table></figure>
<p>解决</p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2011/10/14/junction%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95-%E7%94%A8junction%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%A4%B9%E5%90%8C%E6%AD%A5%E6%98%A0%E5%B0%84-%E4%B9%9F%E5%B0%B1%E6%98%AF%E8%BD%AF%E4%BB%B6%E6%90%AC%E5%AE%B6%E7%9A%84%E5%8E%9F%E7%90%86-junction%E4%BD%BF%E7%94%A8%E6%8A%A5%E9%94%99/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2011/10/14/junction%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95-%E7%94%A8junction%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%A4%B9%E5%90%8C%E6%AD%A5%E6%98%A0%E5%B0%84-%E4%B9%9F%E5%B0%B1%E6%98%AF%E8%BD%AF%E4%BB%B6%E6%90%AC%E5%AE%B6%E7%9A%84%E5%8E%9F%E7%90%86-junction%E4%BD%BF%E7%94%A8%E6%8A%A5%E9%94%99/" class="post-title-link" itemprop="url">junction使用方法,用junction实现文件夹同步映射,也就是软件搬家的原理,junction使用报错???????</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2011-10-14 16:34:00" itemprop="dateCreated datePublished" datetime="2011-10-14T16:34:00+08:00">2011-10-14</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>文件夹映射这个大家不陌生,Windows提供一个共享磁盘的映射,目的是把别人共享的文件夹或者磁盘映射到自己电脑里,成为自己电脑的一个磁盘,方便使用.</p>
<p>但是今天我用一个软件的时候,想让两个文件夹内容保持同步,但又不是复制的,毕竟占地方,映射的方式最好,就查到了这个软件,junction.exe,是Sysinternals 出品的命令行工具。注意只能在NTFS文件格式下使用.</p>
<p>废话不多说,上使用方法:</p>
<p>例如,软件搬家的原理,我把软件全装到了d:program里,处于D盘地方不够了,我想把这个文件夹里的东西搬到E盘的program里,</p>
<p>1.把d盘program文件夹剪切到E盘(注意是剪切,也就是说弄完之后D盘没有program这个文件夹)</p>
<p>2.下载junction 然后把这个东西放到系统盘 Windows&#x2F;system32(方便你使用命令行).下载地址:<a target="_blank" rel="noopener" href="http://download.sysinternals.com/Files/Junction.zip">http://download.sysinternals.com/Files/Junction.zip</a></p>
<p>3.运行-&gt;CMD 回车-&gt; junction d:\program e:\program 回车</p>
<p>4.然后去D盘看看,program这个文件夹又出现了,如果是快捷方式的图标,不用担心,这个绝对不是快捷方式.你可以发现这个文件夹是有大小的,也不用担心,他丝毫不占用你D盘的空间.</p>
<p>5.如果需要撤销,也很简单,junction d:\program -d 就行了,-d是delete的意思,即删除这个映射关系.</p>
<p>有几个注意事项:</p>
<p>1.junction的语法很简单 junction 需要建立的文件夹 目标文件夹</p>
<p>2.需要建立的文件夹是不占地方的,也就是一个映射的结果.注意建立使用命令之前不要存在这个文件夹,否则就会报错,我的系统报出了?????????一堆问号.可能是说文件已经存在.</p>
<p>3.目标文件夹是真正存放的位置,是占空间的.</p>
<p>4.虽然D盘下的是映射的,但是你在里面修改,实际上是在E盘里修改.也就是你D盘这个文件夹实际上是指向E盘的,也就是这种搬家方式能工作的原因.</p>
<p>具体还有不懂的话,留言问我吧~~~~~</p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2011/08/26/%E5%BF%98%E4%BA%86%E6%96%87%E4%BB%B6%E3%80%81%E6%96%87%E4%BB%B6%E5%A4%B9%E6%94%BE%E5%93%AA%E4%BA%86%EF%BC%8C%E9%9A%90%E8%97%8F%E6%96%87%E4%BB%B6%E6%89%BE%E4%B8%8D%E5%88%B0%E4%BA%86%EF%BC%9F/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2011/08/26/%E5%BF%98%E4%BA%86%E6%96%87%E4%BB%B6%E3%80%81%E6%96%87%E4%BB%B6%E5%A4%B9%E6%94%BE%E5%93%AA%E4%BA%86%EF%BC%8C%E9%9A%90%E8%97%8F%E6%96%87%E4%BB%B6%E6%89%BE%E4%B8%8D%E5%88%B0%E4%BA%86%EF%BC%9F/" class="post-title-link" itemprop="url">忘了文件、文件夹放哪了，隐藏文件找不到了？</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2011-08-26 09:17:00" itemprop="dateCreated datePublished" datetime="2011-08-26T09:17:00+08:00">2011-08-26</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>我记得我曾经把一个教程隐藏了，然后放到某个地方，貌似是一个收费的教程，但是自己方的自己都找不到了。于是乎就去网上各种搜索，终于找到一个软件叫Find Hidden，可以把这些东西都找出来，哈哈。。。</p>
<p>你懂得，如果我拿这个软件在你电脑上搜索一下。。。扩展名是.rmvb你懂的….</p>
<p>它的搜索功能相当的丰富，它可以指定盘符搜索，可以设置只搜索隐藏文件或只搜索隐藏文件夹，支持通过通配符过滤(如 *.mp3 则搜索全部MP3文件)，支持过滤文件体积(如最小 10 KB到最大 500 KB的文件)，甚至还能指定文件的创建时间或修改时间，让你最准确地找到需要的东西。</p>
<p>当然，要用之有道哦~~</p>
<p>下载地址：</p>
<p><a target="_blank" rel="noopener" href="http://opxbit.web.id/projects/px-software/findhidden.html">http://opxbit.web.id/projects/px-software/findhidden.html</a></p>
<p>下边有download</p>
<p>自己点</p>
<p>enjoy it！</p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2011/08/21/%E9%BC%A0%E6%A0%87%E6%8B%96%E4%B8%8D%E5%8A%A8%E6%96%87%E4%BB%B6%EF%BC%9F%E4%B8%8D%E8%83%BD%E6%8B%96%E6%8B%89%E6%96%87%E4%BB%B6%EF%BC%9F%E4%B8%8D%E8%83%BD%E6%8B%96%E6%8B%89%EF%BC%9F/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2011/08/21/%E9%BC%A0%E6%A0%87%E6%8B%96%E4%B8%8D%E5%8A%A8%E6%96%87%E4%BB%B6%EF%BC%9F%E4%B8%8D%E8%83%BD%E6%8B%96%E6%8B%89%E6%96%87%E4%BB%B6%EF%BC%9F%E4%B8%8D%E8%83%BD%E6%8B%96%E6%8B%89%EF%BC%9F/" class="post-title-link" itemprop="url">鼠标拖不动文件？不能拖拉文件？不能拖拉？</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2011-08-21 13:57:00" itemprop="dateCreated datePublished" datetime="2011-08-21T13:57:00+08:00">2011-08-21</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <p>(先看最后的方案)</p>
<p>问题很严重。。鼠标坏了么？</p>
<p>鼠标不能进行拖拉动作，点住刚拖动一点，那个文件一闪了下就没了，拖拉根本没效果，不仅是WINDOWS下的文件，连QQ好友，飞信好友，等等需要鼠标拖动的地方统统没有作用。</p>
<p>在百度知道上查，最多的是让通过组策略配置解决，</p>
<p>运行-gpedit.msc-用户配置-管理模板-WINDOWS组件-任务计划程序-禁用拖放，</p>
<p>然而我把这个配置禁用，依旧不能解决，无奈，在知道上继续找，有说鼠标坏了的，有说让重启的，有让重做系统的（据说人家重做了依旧不行，如果真的重做系统了，那是多么纠结的一件事情。。。。）</p>
<p>最后终极解决方案：</p>
<p>发现一个神人让连按两次ESC的，试试的心态按了两次，让我吃惊的发现竟然好了。</p>
<p>实在让我郁闷，好奇怪的windows。。。至今没有人告诉我引起这个原因是什么。。。</p>

      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  


  
  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/page/2/"><i class="fa fa-angle-left" aria-label="上一页"></i></a><a class="page-number" href="/">1</a><a class="page-number" href="/page/2/">2</a><span class="page-number current">3</span><a class="page-number" href="/page/4/">4</a><a class="extend next" rel="next" href="/page/4/"><i class="fa fa-angle-right" aria-label="下一页"></i></a>
  </nav>



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Todd"
      src="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
  <p class="site-author-name" itemprop="name">Todd</p>
  <div class="site-description" itemprop="description">把生命浪费在美好的实物上</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">34</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">2</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">7</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/ghostlitao" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;ghostlitao" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 2019 – 
  <span itemprop="copyrightYear">2024</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Todd</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
